package cn.kgc.springboot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/5/23
 * @Description:
 */
@RestController
@RequestMapping("hello")
public class HelloController {

    @GetMapping
    public Map  method1(){
        HashMap<String, Object> map = new HashMap<>();
        map.put("code",200);
        map.put("msg","HelloController  method1 ok");
        return map;
    }

}
